<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>教员申请记录</title>
		<meta name="keywords" content="教员申请记录" />
		<meta name="author" content="成龙网" />
		<meta name="copyright" content="成龙网" />

		<script language="JavaScript">
	function CheckAll(form) {
		for ( var i = 0; i < form.elements.length; i++) {
			var e = form.elements[i];
			if (e.name != 'C2' && e.name != 'C3')
				e.checked = form.C2.checked;
		}
		//form.C3.checked=form.C2.checked;

	}

	//设置已读
	function doSet(id) {
		location.href = "manage!set.action?id=${teacher.id}&msgId=" + id;
	}

	//删除
	function doDelete(id) {
		jConfirm("您确定删除这条记录吗？", "删除消息", function(flag) {
			if (flag) {
				location.href = "manage!del.action?id=${teacher.id}&msgId="
						+ id;
			}
		});
	}
</script>
		<body>
			<jsp:include page="../top.jsp" />
			<div class="main ZXmainbg clearfix">
				<div class="jyleft">
					<jsp:include page="tc_nav.jsp" />
				</div>
				<div class="jyright">
					<div class="jyt1">
						<a href="${ctx }/teacher/manage.action?id=${teacher.id}"><img
								src="${ctx}/common/image/d05.gif" width="10" height="11" />
							教员管理系统</a>
					</div>
					<div class="nr">
						欢迎您
						<span class="jyred"> ${teacher.username } </span>，您的教员编号是
						<span class="jyred"> ${teacher.id } </span>。
						<br />
						为了保证您的个人资料不被窃取或修改，请务必在离开时退出并关闭浏览器窗口！
					</div>
				</div>
				<div class="jyxx">
					<table width="744" height="176" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="152" align="center" valign="middle">
								<table width="127" height="144" border="0" cellpadding="0"
									cellspacing="0">
									<tr>
										<td align="center" valign="middle" class="yel">
											<c:if test="${empty teacher.photo }">
												<img src="${ctx}/common/image/tx.gif" width="65" height="80" />
											</c:if>
											<c:if test="${not empty teacher.photo }">
												<img
													src="${ctx}/upload/teachers/${teacher.id}/${teacher.photo}"
													width="65" height="80" />
											</c:if>
										</td>
									</tr>
								</table>
							</td>
							<td width="579" align="left" valign="middle">
								<table width="606" border="0" cellpadding="1" cellspacing="1">
									<tr>
										<td width="139" height="25" align="left" valign="middle"
											class="green">
											登录名：
										</td>
										<td width="202" height="25" align="left" valign="middle">
											${teacher.username }
										</td>
									</tr>
									<tr>
										<td height="24" align="left" valign="middle">
											教员ID：
										</td>
										<td height="24" align="left" valign="middle">
											${teacher.id }
										</td>
									</tr>
									<tr>
										<td height="25" align="left" valign="middle" class="yel">
											教员姓名：
										</td>
										<td height="25" align="left" valign="middle">
											${teacher.realname }
										</td>
									</tr>
									<tr>
										<td height="25" align="left" valign="middle">
											教员类型：
										</td>
										<td height="25" align="left" valign="middle">
											<s:if test="entity.indentityFlag eq 1">
											${entity.indentityStu }
											</s:if>
												<s:elseif test="entity.indentityFlag eq 2 ">
											${entity.indentityTea }
											</s:elseif>
												<s:elseif test="entity.indentityFlag eq 3 ">
											${entity.indentityOut }
											</s:elseif>
												<s:elseif test="entity.indentityFlag eq 4">
											其他(已经毕业离校的人员)
											</s:elseif>
										</td>
									</tr>
									<tr>
										<td height="25" align="left" valign="middle">
											身份验证：
										</td>
										<td height="25" align="left" valign="middle">
												<s:if test="entity.state eq 1">
													待审核
												</s:if>
												<s:elseif test="entity.state eq 0 ">
													通过审核
												</s:elseif>
										</td>
									</tr>
									<tr>
										<td height="25" align="left" valign="middle">
											您的星级：
										</td>
										<td height="25" align="left" valign="middle">
											<s:if test="entity.step eq 0">普通会员</s:if><c:forEach begin="1" end="${entity.step}"><img src="${ctx}/common/image/d18.gif"/></c:forEach>
										</td>
									</tr>
									<tr>
										<td height="25" align="left" valign="middle">
											当前状态：
										</td>
										<td height="25" align="left" valign="middle">
												<s:if test="entity.jianliFlag eq 0">
													最近有时间，要做家教，网站公开简历 
												</s:if>
												<s:elseif test="entity.jianliFlag eq 1 ">
													最近有时间，要做家教，但网站不公开简历 
												</s:elseif>
												<s:elseif test="entity.jianliFlag eq 2 ">
													毕业/没时间，不做家教，网站可删除简历
												</s:elseif>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
				<div class="yjgg">
					<table width="744" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="25" colspan="2">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td height="26" bgcolor="#66ccff" class="zxxx">
											您有
											<span id="totalmessage" style="color: red;"><s:property
													value="messages.result.size" />
											</span>条新消息
											<a href="message.action?id=${teacher.id }">更多&gt;&gt;</a>
										</td>
										<td height="26" width="50" bgcolor="#66ccff" class="zxxx">
											状态
										</td>
										<td height="26" width="100" bgcolor="#66ccff" class="zxxx">
											发送时间
										</td>
										<td align="center" width="50" valign="middle"
											bgcolor="#66ccff">
											<strong>操 作</strong>
										</td>
									</tr>
									<tr>
										<td height="3" colspan="4"></td>
									</tr>
									<tr>
										<s:iterator value="messages.result">
											<tr>
												<td height="30" valign="middle">
													${msg }
												</td>
												<td height="30" valign="middle">
													<s:if test="isRead eq 1">	
													已读
												</s:if>
													<s:else>
														<font color="red">未读</font>
													</s:else>
												</td>
												<td height="30" valign="middle">
													<s:date format="yyyy年MM月dd日 hh:mm:ss" name="createTime" />
												</td>
												<td height="30" valign="middle">
													<a href="javascript:doSet('${id }')">标记已读</a>&nbsp;|&nbsp;
													<a href="javascript:doDelete('${id }')">删除</a>
												</td>
											</tr>
										</s:iterator>
								</table>
							</td>
						</tr>

					</table>
				</div>



			</div>
			<!--友情链接-->
			<jsp:include page="../bottom.jsp" />
		</body>
</html>